package com.hdw.auth.bean.model;

import java.io.Serializable;

public class BaseAuthUse implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long idUse;

	private String cd;

	private String na;

	private String phone;

	private String email;

	private Boolean fgAct;

	private String des;

	private String salt;

	private String pwd;

	public Long getIdUse() {
	    return idUse;
	}

	public void setIdUse(Long idUse) {
	    this.idUse = idUse;
	}

	public String getCd() {
	    return cd;
	}

	public void setCd(String cd) {
	    this.cd = cd == null ? null : cd.trim();
	}

	public String getNa() {
	    return na;
	}

	public void setNa(String na) {
	    this.na = na == null ? null : na.trim();
	}

	public String getPhone() {
	    return phone;
	}

	public void setPhone(String phone) {
	    this.phone = phone == null ? null : phone.trim();
	}

	public String getEmail() {
	    return email;
	}

	public void setEmail(String email) {
	    this.email = email == null ? null : email.trim();
	}

	public Boolean getFgAct() {
	    return fgAct;
	}

	public void setFgAct(Boolean fgAct) {
	    this.fgAct = fgAct;
	}

	public String getDes() {
	    return des;
	}

	public void setDes(String des) {
	    this.des = des == null ? null : des.trim();
	}

	public String getSalt() {
	    return salt;
	}

	public void setSalt(String salt) {
	    this.salt = salt == null ? null : salt.trim();
	}

	public String getPwd() {
	    return pwd;
	}

	public void setPwd(String pwd) {
	    this.pwd = pwd == null ? null : pwd.trim();
	}

	@Override
	public boolean equals(Object that) {
	    if (this == that) {
	        return true;
	    }
	    if (that == null) {
	        return false;
	    }
	    if (getClass() != that.getClass()) {
	        return false;
	    }
	    BaseAuthUse other = (BaseAuthUse) that;
	    return (this.getIdUse() == null ? other.getIdUse() == null : this.getIdUse().equals(other.getIdUse())) && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd())) && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa())) && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail())) && (this.getFgAct() == null ? other.getFgAct() == null : this.getFgAct().equals(other.getFgAct())) && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes())) && (this.getSalt() == null ? other.getSalt() == null : this.getSalt().equals(other.getSalt())) && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()));
	}

	@Override
	public int hashCode() {
	    final int prime = 31;
	    int result = 1;
	    result = prime * result + ((getIdUse() == null) ? 0 : getIdUse().hashCode());
	    result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
	    result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
	    result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
	    result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
	    result = prime * result + ((getFgAct() == null) ? 0 : getFgAct().hashCode());
	    result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
	    result = prime * result + ((getSalt() == null) ? 0 : getSalt().hashCode());
	    result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
	    return result;
	}

	@Override
	public String toString() {
	    StringBuilder sb = new StringBuilder();
	    sb.append(getClass().getSimpleName());
	    sb.append(" [");
	    sb.append("Hash = ").append(hashCode());
	    sb.append(", serialVersionUID=").append(serialVersionUID);
	    sb.append(", idUse=").append(idUse);
	    sb.append(", cd=").append(cd);
	    sb.append(", na=").append(na);
	    sb.append(", phone=").append(phone);
	    sb.append(", email=").append(email);
	    sb.append(", fgAct=").append(fgAct);
	    sb.append(", des=").append(des);
	    sb.append(", salt=").append(salt);
	    sb.append(", pwd=").append(pwd);
	    sb.append("]");
	    return sb.toString();
	}


}